package com.gxa.service.impl;

import com.gxa.mapper.ConsoleMapper;
import com.gxa.pojo.Announcement;
import com.gxa.pojo.Ioo;
import com.gxa.service.ConsoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: zrf
 * Date: 2020/10/29 9:41
 * Description:
 * Version: V1.0
 */
@Service
public class ConsoleServiceImpl implements ConsoleService{
    @Autowired(required = false)
    ConsoleMapper consoleMapper;

    /**
     * 查询已经公告信息
     *
     * @param
     * @return 实例对象
     */
    @Override
    public List<Map> queryAnn() {
        return consoleMapper.queryAnn();
    }

    /**
     * 查询未审核信息
     *
     * @param
     * @return 实例对象
     */
    @Override
    public List<Ioo> queryAll() {
        return consoleMapper.queryAll();
    }
}
